package com.jiefeng.manager.service;
import com.jiefeng.manager.queryRequest.MerchantRequest;
import com.jiefeng.manager.table.MerchantInfo;
import java.util.List;
import java.util.Map;

/**
 * Created by hts on 2016/6/26.
 */
public interface MerchantService {
    /**
     * 添加商户
     */
    int addMerchant(MerchantInfo merchantInfo);

    /**
     * 修改商户
     */
    int updateMerchant(MerchantInfo merchantInfo);

    /**
     * 默认分页查询
     */

    List<MerchantInfo> getListByPage(MerchantRequest merchantRequest);

    /**
     * 按照id查询数据
     */

    public MerchantInfo getMerchantById(String id);


    /**
     * 统计总数
     */
    public int getCount(MerchantRequest merchantRequest);

    /**
     * 按照指定参数统计总数
     */
    public long countbyParam(Map<String, String> param);

    /**
    *删除商户
    */
    public void deleteMerchant(String merchantId);


}
